package com.ryan.day02.demo02;

import java.util.ArrayList;

public class DemoArrayListMethod {
    public static void main(String[] args) {
        ArrayList<String> array  = new ArrayList<>();
        boolean linwei = array.add("linwei");
        boolean luyujie = array.add("luyujie");
        boolean yangmi = array.add("yangmi");
        System.out.println(array);
        System.out.println(array.size());
        System.out.println(array.get(2));
        String remove = array.remove(2);
        System.out.println(remove);
        System.out.println(array);
    }
}
